package chpt12.dao;

import java.util.List;

public interface StudentDao {  
	/**
	 * 
	 * @param student
	 * @return 所插入学生的id
	 */
    Long addStudent(Student student);
    void updateStudentById(Student student);
    void deleteStudentById(Long id);
    Student getStudentById(Long id);
    List<Student> getAllStudents();
    List<Student> getStudentsByName(String name);
}

